<script>
    function abc() {
        var name = document.getElementById('search_key');
        name.className = "ipt12";
    }
    function cc(x) {
        var name = document.getElementById("con_five_" + x);
        var list = document.getElementById("five" + x);
        name.style.display = "none";
        list.className = "";
    }
    function setTab(name, cursel, n) {
        for (i = 1; i <= n; i++) {
            var menu = document.getElementById(name + i);
            var con = document.getElementById("con_" + name + "_" + i);
            menu.className = i == cursel ? "hover" : "";
            con.style.display = i == cursel ? "block" : "none";
        }
    }

</script>
<!--303页面-->
<div class="main">
    <div class="left">
        <?php
                    @include_component("system", "menuNavigator", array("catalogId" => $catalogId, "subCatalogId" => 3, "type" => 3, "cssStr" => "address_tit address_tit301"));
        echo "<div class=\"abcd\">";
        echo link_to("A", "celebrity/list?catalogId=" . $catalogId . "&link=A", ($link == A
                    ? "style='text-decoration:none;'" : ""))
             . link_to("B", "celebrity/list?catalogId=" . $catalogId . "&link=B", ($link == B
                            ? "style='text-decoration:none;'" : ""))
             . link_to("C", "celebrity/list?catalogId=" . $catalogId . "&link=C", ($link == C
                            ? "style='text-decoration:none;'" : ""))
             . link_to("D", "celebrity/list?catalogId=" . $catalogId . "&link=D", ($link == D
                            ? "style='text-decoration:none;'" : ""))
             . link_to("E", "celebrity/list?catalogId=" . $catalogId . "&link=E", ($link == E
                            ? "style='text-decoration:none;'" : ""))
             . link_to("F", "celebrity/list?catalogId=" . $catalogId . "&link=F", ($link == F
                            ? "style='text-decoration:none;'" : ""))
             . link_to("G", "celebrity/list?catalogId=" . $catalogId . "&link=G", ($link == G
                            ? "style='text-decoration:none;'" : ""))
             . link_to("H", "celebrity/list?catalogId=" . $catalogId . "&link=H", ($link == H
                            ? "style='text-decoration:none;'" : ""))
             . link_to("I", "celebrity/list?catalogId=" . $catalogId . "&link=I", ($link == I
                            ? "style='text-decoration:none;'" : ""))
             . link_to("J", "celebrity/list?catalogId=" . $catalogId . "&link=J", ($link == J
                            ? "style='text-decoration:none;'" : ""))
             . link_to("K", "celebrity/list?catalogId=" . $catalogId . "&link=K", ($link == K
                            ? "style='text-decoration:none;'" : ""))
             . link_to("L", "celebrity/list?catalogId=" . $catalogId . "&link=L", ($link == L
                            ? "style='text-decoration:none;'" : ""))
             . link_to("M", "celebrity/list?catalogId=" . $catalogId . "&link=M", ($link == M
                            ? "style='text-decoration:none;'" : ""))
             . link_to("N", "celebrity/list?catalogId=" . $catalogId . "&link=N", ($link == N
                            ? "style='text-decoration:none;'" : ""))
             . link_to("O", "celebrity/list?catalogId=" . $catalogId . "&link=O", ($link == O
                            ? "style='text-decoration:none;'" : ""))
             . link_to("P", "celebrity/list?catalogId=" . $catalogId . "&link=P", ($link == P
                            ? "style='text-decoration:none;'" : ""))
             . link_to("Q", "celebrity/list?catalogId=" . $catalogId . "&link=Q", ($link == Q
                            ? "style='text-decoration:none;'" : ""))
             . link_to("R", "celebrity/list?catalogId=" . $catalogId . "&link=R", ($link == R
                            ? "style='text-decoration:none;'" : ""))
             . link_to("S", "celebrity/list?catalogId=" . $catalogId . "&link=S", ($link == S
                            ? "style='text-decoration:none;'" : ""))
             . link_to("T", "celebrity/list?catalogId=" . $catalogId . "&link=T", ($link == T
                            ? "style='text-decoration:none;'" : ""))
             . link_to("U", "celebrity/list?catalogId=" . $catalogId . "&link=U", ($link == U
                            ? "style='text-decoration:none;'" : ""))
             . link_to("V", "celebrity/list?catalogId=" . $catalogId . "&link=V", ($link == V
                            ? "style='text-decoration:none;'" : ""))
             . link_to("W", "celebrity/list?catalogId=" . $catalogId . "&link=W", ($link == W
                            ? "style='text-decoration:none;'" : ""))
             . link_to("X", "celebrity/list?catalogId=" . $catalogId . "&link=X", ($link == X
                            ? "style='text-decoration:none;'" : ""))
             . link_to("Y", "celebrity/list?catalogId=" . $catalogId . "&link=Y", ($link == Y
                            ? "style='text-decoration:none;'" : ""))
             . link_to("Z", "celebrity/list?catalogId=" . $catalogId . "&link=Z", ($link == Z
                            ? "style='text-decoration:none;'" : ""))
             . link_to("其他明星", "celebrity/list?catalogId=" . $catalogId . "&link=ot", ($link == 'ot'
                            ? "style='text-decoration:none;'" : ""));
        ?>
    </div>
    <div class="star_list">
        <div class="male_star">
            <h4>
                <span>男明星</span> <?php echo link_to("MORE", "celebrity/list?catalogId=" . $catalogId . "&sex=male&type=1", "class='more_male'") ?>
                <!--                <a href="#" class="more_male" target="_blank">MORE</a>-->
            </h4>
        <?php
        foreach ($males as $male) {
            echo "<div class='star_box'>" . link_to("<img src='" . $male->getSnapshot_big() . "'  />", "celebrity/detail?celebrityId=" . $male->getCelebrity_id(), "target='_blank'") . "
            <h3>" . link_to($male->getName(), "celebrity/detail?celebrityId=" . $male->getCelebrity_id(), "target='_blank'")
                 . "</h3>
            </div>";
        }
            ?>

            <!--            <div class="star_box">-->
            <!--                <a href="#" target="_blank"><img src="images/img14.jpg"/></a>-->
            <!---->
            <!--                <h3><a href="#" target="_blank">王诚诚</a></h3>-->
            <!--            </div>-->
            <!--            <div class="star_box">-->
            <!--                <a href="#" target="_blank"><img src="images/img14.jpg"/></a>-->
            <!---->
            <!--                <h3><a href="#" target="_blank">王诚诚</a></h3>-->
            <!---->
            <!--            </div>-->
            <!--            <div class="star_box">-->
            <!--                <a href="#" target="_blank"><img src="images/img14.jpg"/></a>-->
            <!---->
            <!--                <h3><a href="#" target="_blank">王诚诚</a></h3>-->
            <!--            </div>-->
            <!--            <div class="star_box">-->
            <!--                <a href="#" target="_blank"><img src="images/img14.jpg"/></a>-->
            <!---->
            <!--                <h3><a href="#" target="_blank">王诚诚</a></h3>-->
            <!---->
            <!--            </div>-->
            <!--            <div class="star_box">-->
            <!--                <a href="#" target="_blank"><img src="images/img14.jpg"/></a>-->
            <!---->
            <!--                <h3><a href="#" target="_blank">王诚诚</a></h3>-->
            <!--            </div>-->
        </div>
        <!--###########-->
        <div class="male_star">

            <h4>
                <span>女明星</span>  <?php echo link_to("MORE", "celebrity/list?catalogId=" . $catalogId . "&sex=female&type=1", "class='more_male'") ?></a>
            </h4>

        <?php
                foreach ($females as $female) {
            echo "<div class='star_box'>" . link_to("<img src='" . $female->getSnapshot_big() . "'  />", "celebrity/detail?celebrityId=" . $female->getCelebrity_id(), "target='_blank'") . "
            <h3>" . link_to($female->getName(), "celebrity/detail?celebrityId=" . $female->getCelebrity_id(), "target='_blank'")
                 . "</h3>
            </div>";
        }
            ?>
        </div>
        <!--###########-->
        <div class="male_star">
            <h4>
                <span>组合</span>  <?php echo link_to("MORE", "celebrity/list?catalogId=" . $catalogId . "&type=2", "class='more_male'") ?>
            </h4>

        <?php
                        foreach ($bands as $band) {
            echo "<div class='star_box'>" . link_to("<img src='" . $band->getSnapshot_big() . "'  />", "celebrity/detail?celebrityId=" . $band->getCelebrity_id(), "target='_blank'") . "
            <h3>" . link_to($band->getName(), "celebrity/detail?celebrityId=" . $band->getCelebrity_id(), "target='_blank'")
                 . "</h3>
            </div>";
        }
            ?>
        </div>
        <!--###########-->
    </div>
</div>
<!--左侧结束 右侧开始-->
<div class="right">
        <?php
                    @include_component('other', 'advertise'); //广告
            @include_component('celebrity', 'recommend', array('recordCount' => '8'));//百科列表
            @include_component('news', 'hotlink', array('recordCount' => 5));//热门点击
            @include_component('video', 'hotlink', array('recordCount' => 10, 'catalogId' => $catalogId, 'period' => ''));//最热视频
            ?>
</div>
</div>
